import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createI18n } from 'vue-i18n'
import Vant from 'vant'
import 'vant/lib/index.css'
import './style.css'
import App from './App.vue'

// Create i18n instance
const i18n = createI18n({
  legacy: false,
  locale: 'zh-CN',
  fallbackLocale: 'en',
  messages: {
    'zh-CN': {
      app: {
        title: 'SVG 编辑器'
      }
    },
    'en': {
      app: {
        title: 'SVG Editor'
      }
    }
  }
})

const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(i18n)
app.use(Vant)
app.mount('#app')
